package com.cloudsea.yunhaistores.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class MerchantRegisterDTO {

    @Schema(description = "商户全称，例如 '张三的便利店'", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "商户名称不能为空")
    private String merchantName;

    @Schema(description = "商户联系手机号，将作为管理员默认登录名", example = "13800138000", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "联系手机号不能为空")
    @Size(min = 11, max = 11, message = "请输入11位手机号")
    private String contactPhone;

    @Schema(description = "管理员初始密码，至少6位", example = "password123", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "密码不能为空")
    @Size(min = 6, message = "密码至少需要6位")
    private String password;
}
